package com.atguigu.yygh.hosp.service;
import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;
public interface DepartmentService {
    //根据医院编号和科室编号查询科室名称
    String getDeptName(String hoscode, String depcode);
    //保存上传的科室接口数据

    void save(Map<String, Object> paramMap);

    //查询科室的接口

    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);
    //删除科室接口

    void remove(String hoscode, String depcode);
    //根据医院编号，查询医院科室列表

    List<DepartmentVo> findDeptTree(String hoscode);

    //根据医院编号，查询医院科室对象
    Department getDepartment(String hoscode, String depcode);
}
